package com.chen.springmvc.service.api;

import com.chen.springmvc.domain.User;

import java.util.List;

public interface IUserService
{
    List<User> findAllUsers();

    User findById(long id);

    boolean isUserExist(User user);

    void saveUser(User user);

    void updateUser(User currentUser);

    void deleteUserById(long id);

    void deleteAllUsers();
}
